home *** CD-ROM | disk | FTP | other *** search
/ Microsoft Multimedia Viewer How-To CD / Microsoft Multimedia Viewer How-To CD.iso / viewerht / addons / mvvbx / bagtest.frm next >
Text File  |  1993-08-16  |  4KB  |  146 lines

  1. VERSION 2.00
  2. Begin Form Form1 
  3.    Caption         =   "Baggage Extractor"
  4.    ClientHeight    =   3675
  5.    ClientLeft      =   945
  6.    ClientTop       =   1365
  7.    ClientWidth     =   7245
  8.    Height          =   4020
  9.    Left            =   915
  10.    LinkTopic       =   "Form1"
  11.    ScaleHeight     =   3675
  12.    ScaleWidth      =   7245
  13.    Top             =   1050
  14.    Width           =   7305
  15.    Begin TextBox Response 
  16.       Height          =   1260
  17.       Left            =   195
  18.       TabIndex        =   10
  19.       Text            =   "Text2"
  20.       Top             =   1125
  21.       Width           =   6705
  22.    End
  23.    Begin TextBox Book 
  24.       Height          =   315
  25.       Left            =   1380
  26.       TabIndex        =   7
  27.       Text            =   "D:\merck\mrck_ts.mvb"
  28.       Top             =   3225
  29.       Width           =   5475
  30.    End
  31.    Begin TextBox Bagftext 
  32.       Height          =   300
  33.       Left            =   1365
  34.       TabIndex        =   6
  35.       Top             =   2850
  36.       Width           =   5475
  37.    End
  38.    Begin TextBox Text1 
  39.       Height          =   300
  40.       Left            =   1710
  41.       TabIndex        =   5
  42.       Text            =   "7"
  43.       Top             =   2475
  44.       Width           =   750
  45.    End
  46.    Begin CommandButton Command2 
  47.       Caption         =   "Get Topic Number"
  48.       Height          =   450
  49.       Left            =   5085
  50.       TabIndex        =   3
  51.       Top             =   165
  52.       Width           =   1995
  53.    End
  54.    Begin MVIEW MV1 
  55.       BaggageFile     =   ""
  56.       Left            =   150
  57.       optCmd          =   0  'cmdoptNONE
  58.       Top             =   120
  59.       VGetInfo        =   0   'False
  60.       VGetInfohWnd    =   0
  61.       ViewerCommand   =   ""
  62.       ViewerTitle     =   ""
  63.       VInfo           =   "╞ë∩ "
  64.       VInfoMsg        =   0  'GI_NOTHING
  65.       Vwr             =   0
  66.    End
  67.    Begin CommandButton Command1 
  68.       Caption         =   "OpenTitle"
  69.       Height          =   450
  70.       Left            =   810
  71.       TabIndex        =   2
  72.       Top             =   135
  73.       Width           =   1965
  74.    End
  75.    Begin CommandButton GetBag 
  76.       Caption         =   "Get Baggage"
  77.       Height          =   420
  78.       Left            =   3000
  79.       TabIndex        =   0
  80.       Top             =   165
  81.       Width           =   1815
  82.    End
  83.    Begin Label Label5 
  84.       Caption         =   "Viewer File"
  85.       Height          =   255
  86.       Left            =   270
  87.       TabIndex        =   9
  88.       Top             =   3285
  89.       Width           =   1005
  90.    End
  91.    Begin Label Label4 
  92.       Caption         =   "Bag File"
  93.       Height          =   225
  94.       Left            =   315
  95.       TabIndex        =   8
  96.       Top             =   2880
  97.       Width           =   795
  98.    End
  99.    Begin Label Label3 
  100.       Caption         =   "Message Code"
  101.       Height          =   255
  102.       Left            =   270
  103.       TabIndex        =   4
  104.       Top             =   2520
  105.       Width           =   1275
  106.    End
  107.    Begin Label Label1 
  108.       Caption         =   "Size Of File"
  109.       Height          =   225
  110.       Left            =   195
  111.       TabIndex        =   1
  112.       Top             =   855
  113.       Width           =   6165
  114.    End
  115. End
  116. Dim gVwr%
  117.  
  118. Sub Command1_Click ()
  119. MV1.ViewerTitle = Book.Text
  120. MV1.Vwr = 0
  121. MV1.optCmd = 0
  122. MV1.ViewerCommand = "Prev()"
  123. MV1.ViewerExecute = True
  124. gVwr% = MV1.Vwr
  125. End Sub
  126.  
  127. Sub Command2_Click ()
  128.     MV1.Vwr = gVwr%
  129.     mn% = Val(text1.Text)
  130.     MV1.VInfoMsg = mn%      ' GI_TOPICNO '
  131.     MV1.VGetInfohWnd = 0  ' Get the Main Scrolling Region
  132.     MV1.VGetInfo = True   ' Kick off the Command
  133.     Label1.Caption = MV1.VInfo' The results are stored here as a string
  134. '    MV1.VInfoMsg = 7      ' GI_TOPICNO '
  135.  
  136. End Sub
  137.  
  138. Sub GetBag_Click ()
  139. MV1.BaggageFile = Bagftext.Text
  140. MV1.ViewerTitle = Book.Text
  141. MV1.BaggageGet = MV1.BaggageLOF
  142. Label1.Caption = MV1.BaggageLOF
  143. Response.Text = MV1.BaggageData
  144. End Sub
  145.  
  146.